package com.lu.statistics.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.statistics.entity.SysDictItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * SysDictItemMapper继承基类
 */
@Repository
public interface SysDictItemMapper extends BaseMapper<SysDictItem> {


    /**
     * 根据字典编码获取字典详情列表
     *
     * @param dictCode
     * @return
     */
    public List<SysDictItem> findDictListByDictCode(@Param("dictCode") String dictCode);

    /**
     * 查询字典信息
     * @param dictCode
     * @param key
     * @return
     */

    public SysDictItem queryDictItem(@Param("dictCode") String dictCode, @Param("key") String key);

}